package com.platform.qujia.dao;

import com.github.pagehelper.Page;
import com.github.pagehelper.PageInfo;
import com.platform.qujia.param.request.OrderPayInfo;
import com.platform.qujia.pojo.Station;
import com.platform.qujia.pojo.StationDeviceManager;
import com.platform.qujia.pojo.SysRole;
import com.platform.qujia.pojo.SysUser;
import com.platform.qujia.pojo.wx.TopUpOrderCollect;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PosMachineMapper {

    SysUser selectUserByUserName(String userName);
    SysUser selectUserByUserId(String userId);

    //根据有枪查询加油员ID
    List<SysUser> selectOilPersonnelIdByGun(SysUser gun);

    //获取油站的油枪所绑定的打印设备
    StationDeviceManager getStationDeviceManager(StationDeviceManager stationDeviceManager);

    /**
     * 查询站点绑定的小票机和pos机
     *     小票机和pos机没有绑定加油员时，默认查询这一台
     */
    List<StationDeviceManager> getStationDeviceManagerList(StationDeviceManager stationDeviceManager);


    List<SysRole> selectUserRoleByUserId(@Param("userId") String userId);

    List<SysRole> selectUserRoleByUserIdByPos(@Param("userId") String userId,@Param("stationId") Integer stationId);

    List<OrderPayInfo> getTopUpOrderList(@Param("station") Station station);

    TopUpOrderCollect getRechargeRecordCollect(@Param("station")Station station);
}
